package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.ResponseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 22/05/23/0023 下午 2:37
 * @Component: 成都蜗牛学苑
 **/
public interface RbacManagerDao {
    List<RbacManager> findAll();

    int deleteOne(int id);

    int saveOne(RbacManager rbacManager);

    int updateOne(RbacManager rbacManager);

    int resetPassword(@Param("account") String account, @Param("password") String newPassword);

    int determineIfTheAccountIsDuplicated(String account);
}
